]> dgit.raspbian.org Git - gnome-shell.git/commit
authPrompt: Don't begin a new authentication session on lockscreen cancel event
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Sat, 30 Jan 2021 03:18:32 +0000 (04:18 +0100)
committerMarge Bot <marge-bot@gnome.org>
Fri, 12 Feb 2021 20:26:00 +0000 (20:26 +0000)
commit3e96952fde64d2f4ddab76dc9c650a74e1ccf516
tree7259934f5e983a728751a96388fc53bb1859d6de
parentb916df11106d46da9df81c68a0e02de43e75ddbc
authPrompt: Don't begin a new authentication session on lockscreen cancel event

When a cancel event in the user lockscreen happens we first emit a reset
signal and immediately a cancelled one.

This lead to start a new gdm worker for each enabled authentication
method and then immediately to stop it.
As per the previous commit, we don't have anymore dangling gdm workers
around, but still we should not even start a new one in such case.

So, when the user explicitly cancelled the authentication session, first
emit a cancelled event and only emit a reset event with a begin request
if we are outside the lockscreen.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1622>
js/gdm/authPrompt.js